#include "sheet_impl.h"



entry_iterator_impl::entry_iterator_impl(e_iter _cur, e_iter _end)
{
	m_iter_cur = _cur;
	m_iter_end = _end;
}

entry_iterator_impl::entry_iterator_impl(e_iter _end)
{
	m_iter_cur = _end;
	m_iter_end = _end;
}

bool entry_iterator_impl::next()
{
	if(m_iter_cur == m_iter_end)
		return false;

	m_iter_cur++;
	if(m_iter_cur == m_iter_end)
		return false;

	return true;
}

bool entry_iterator_impl::is_equal( const entry_iterator* rhs )
{
	const entry_iterator_impl* r = dynamic_cast<const entry_iterator_impl*>(rhs);
	if(m_iter_cur == r->m_iter_cur)
		return true;

	return false;
}